package com.seal.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.seal.dao.IBusiOperDao;
import com.seal.dto.BusiOperDto;
import com.seal.model.BusiOper;
import com.seal.service.IBusiOperService;


@Service("busiOperServiceImpl")
@Transactional(readOnly = true)
public class BusiOperServiceImpl implements IBusiOperService {

	@Resource(name = "busiOperDaoImpl")
	private IBusiOperDao busiOperDao;

	@Transactional(propagation = Propagation.REQUIRED,readOnly = false, rollbackForClassName = "Exception")
	public void addBusiOper(BusiOper busiOper) throws Exception {
		busiOperDao.addBusiOper(busiOper);
	}
	
	@Transactional(propagation = Propagation.REQUIRED,readOnly = false, rollbackForClassName = "Exception")
	public void updateBusiOper(BusiOper busiOper) throws Exception {
		busiOperDao.updateBusiOper(busiOper);
	}
	
	@Transactional(propagation = Propagation.REQUIRED,readOnly = false, rollbackForClassName = "Exception")
	public void deleteBusiOper(BusiOper busiOper) throws Exception {
		busiOperDao.deleteBusiOper(busiOper);
	}

	public BusiOper getBusiOperById(Long id) throws Exception {
		return busiOperDao.getBusiOperById(id);
	}

	public List<BusiOper> getAllBusiOper(BusiOperDto busiOperDto)
			throws Exception {
		return busiOperDao.getAllBusiOper(busiOperDto);
	}
	
}
